Record redirect target in ParserOptions
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 2 May 2014 20:16:51 +0000 (16:16 -0400)
committerTim Starling <tstarling@wikimedia.org>
Thu, 18 Sep 2014 06:19:31 +0000 (06:19 +0000)
commitbba2bc6ca01de21114328f61c5c8cb16c25f70e0
tree9c3d9481d6f32c852b88d083044e9df96da12e4c
parent595fc2474a80cfe9092b18fb1bd41cea511543ba
Record redirect target in ParserOptions

Since Id44d566a, the text passed to the parser when parsing a
&redirect=no page no longer contains the #REDIRECT directive. For the
benefit of extensions that want to know the redirect target from various
parser hooks, record the target on the ParserOptions object associated
with the parse.

Bug: 62856
Change-Id: Icd1da9911a43eabacbd9e9a369a8326f67f270ff
includes/content/AbstractContent.php
includes/content/WikitextContent.php
includes/parser/ParserOptions.php
tests/phpunit/includes/content/WikitextContentTest.php